(x_get_local_selection): If no conversion function
authorRichard M. Stallman <rms@gnu.org>
Thu, 27 May 1993 04:01:13 +0000 (04:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 27 May 1993 04:01:13 +0000 (04:01 +0000)
exists for the requested type, just return nil.

src/xselect.c

index 1e8111055047b934d6a82aaedfe3cce3a3d6f337..d239893d3e87afbeaa5f4c289c8c6492dbebdf8a 100644 (file)
@@ -357,13 +357,12 @@ x_get_local_selection (selection_symbol, target_type)
 
       CHECK_SYMBOL (target_type, 0);
       handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist));
-      if (NILP (handler_fn))
-       Fsignal (Qerror,
-                Fcons (build_string ("missing selection-conversion function"),
-                       Fcons (target_type, Fcons (value, Qnil))));
-      value = call3 (handler_fn,
-                    selection_symbol, target_type,
-                    XCONS (XCONS (local_value)->cdr)->car);
+      if (!NILP (handler_fn))
+       value = call3 (handler_fn,
+                      selection_symbol, target_type,
+                      XCONS (XCONS (local_value)->cdr)->car);
+      else
+       value = Qnil;
       unbind_to (count, Qnil);
     }